<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="t" %>

<t:body title="title">
	<div class="c_block">
		<c:forEach items="${users}" var="user">
			<div class="row">
				<div class="simple_d">
					<span class="user_list_l">
				    	<c:url value="/user/${user.id}" var="url"/>
				        <a href="${url}">
				            <c:out value="${user.lastName}"/> <c:out value="${user.firstName}"/> <c:out value="${user.patrName}"/>
				        </a>
			        </span>
			        <span class="user_list_r">
				        <c:url value="/user/${user.id}/delete" var="url"/>
				        <a href="${url}">Удалить</a>
			        </span>
			    </div>
			    <div class="simple_l">
			    	
			    </div>
			   
			</div>
		</c:forEach>
		<div class="last">
			<c:url value="/user/new" var="url"/>
			<a href="${url}">Создать нового пользователя</a>
			<c:url value="/group" var="url"/>
			<a href="${url}">К списку групп</a>
		</div>
	</div>
	
</t:body>
